package com.lagou.connect;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * @author: wudong
 * @create: 2021-05-19 13:55
 **/
public interface ConectionManager {
    Connection getConnection() throws SQLException;

    void commit() throws SQLException;

    void rollback() throws SQLException;

    void close() throws SQLException;

    default Integer getTimeout() throws SQLException{
        return null;
    }
}
